package com.pubinfo.passbook.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pubinfo.passbook.common.entity.TRuleDistrict;
import com.pubinfo.passbook.common.model.bo.witeoff.CityInfo;
import com.pubinfo.passbook.common.model.dto.rule.RuleDistrictParam;
import com.pubinfo.passbook.common.model.vo.rule.DistrictIdRelevanceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.pubinfo.passbook.common.entity.TRuleDistrict
 */
public interface TRuleDistrictMapper extends BaseMapper<TRuleDistrict> {
  IPage<TRuleDistrict> selectRuleDistrict(IPage<TRuleDistrict> iPage,
                                          @Param("param") RuleDistrictParam param);
  
  CityInfo findCityInfoByDistrictId(@Param("districtId") String districtId, @Param("nsrsbh") String nsrsbh);
  
  int deleteDistrictDiseases(String districtId);
  
  List<DistrictIdRelevanceVo> selectDistrictIdRelevance(String districtId);
}




